/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bsc.war.model;

/**
 *
 * @author Miguel Angel
 */
public class MilestoneProgressPojo {

    private String name;
    private Double real;
    private Double goal;
    private Double score = null;

    private Double realProgress;
    private Double goalProgress;
    private Double scoreProgress = null;

    /**
     * @return the real
     */
    public Double getReal() {
        return real;
    }

    /**
     * @param real the real to set
     */
    public void setReal(Double real) {
        this.real = real;
    }

    /**
     * @return the meta
     */
    public Double getGoal() {
        return goal;
    }

    /**
     * @param meta the meta to set
     */
    public void setGoal(Double goal) {
        this.goal = goal;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the score
     */
    public Double getScore() {
        if (score != null) {
            return score;
        }
        return goal / real;
    }

    /**
     * @param score the score to set
     */
    public void setScore(Double score) {
        this.score = score;
    }

    /**
     * @return the realProgress
     */
    public Double getRealProgress() {
        return realProgress;
    }

    /**
     * @param realProgress the realProgress to set
     */
    public void setRealProgress(Double realProgress) {
        this.realProgress = realProgress;
    }

    /**
     * @return the goalProgress
     */
    public Double getGoalProgress() {
        return goalProgress;
    }

    /**
     * @param goalProgress the goalProgress to set
     */
    public void setGoalProgress(Double goalProgress) {
        this.goalProgress = goalProgress;
    }

    /**
     * @return the scoreProgress
     */
    public Double getScoreProgress() {
        return scoreProgress;
    }

    /**
     * @param scoreProgress the scoreProgress to set
     */
    public void setScoreProgress(Double scoreProgress) {
        this.scoreProgress = scoreProgress;
    }
}
